package com.awifi.demo.dao;

import com.awifi.demo.entity.Student;
import com.awifi.demo.entity.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @description: ToDo
 * @author: marin
 * @time: 2020/8/24 14:43
 */

@Mapper
@Component
public interface TeacherMapper {
    Teacher findTeacherById(@Param("id") int id);
    Teacher findTeacher(@Param("id") int id);
    Teacher selectTeacherByObject(Map map);
    Teacher selectTeacherByMap(Map map);
    List<Teacher> getTeacherDynamic(Map map);
    Teacher getStudent(@Param("id") int id);
    Student getStudentByTeacherId(@Param("id")int id);
}
